<template>
  <div class="home">
    <keep-alive>
      <router-view />
    </keep-alive>
    <van-tabbar route active-color="#ff3030">
      <van-tabbar-item replace to="/home/goods" icon="wap-home">发现</van-tabbar-item>
      <van-tabbar-item replace to="/home/tbPassword" icon="bag">搜好券</van-tabbar-item>
      <van-tabbar-item replace to="/home/user" icon="friends">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
import { Tabbar, TabbarItem } from "vant";

export default {
  name: "Home",
  components: {
    [Tabbar.name]: Tabbar,
    [TabbarItem.name]: TabbarItem
  },
  data() {
    return {};
  },
  methods: {}
};
</script>

<style scoped>
.home {
  height: 100%;
}
</style>